.class Lrexsee/core/browser/RexseePreload$1;
.super Ljava/lang/Thread;
.source "RexseePreload.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/RexseePreload;->preload(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/RexseePreload;

.field private final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/core/browser/RexseePreload;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    iput-object p2, p0, Lrexsee/core/browser/RexseePreload$1;->val$url:Ljava/lang/String;

    .line 36
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    const/4 v4, 0x0

    .line 39
    iget-object v1, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    # getter for: Lrexsee/core/browser/RexseePreload;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/browser/RexseePreload;->access$0(Lrexsee/core/browser/RexseePreload;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    # getter for: Lrexsee/core/browser/RexseePreload;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v3}, Lrexsee/core/browser/RexseePreload;->access$0(Lrexsee/core/browser/RexseePreload;)Lrexsee/core/browser/Browser;

    move-result-object v3

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v3, v3, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v3, v3, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "Ajax"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    check-cast v0, Lrexsee/core/transportation/RexseeAjax;

    .line 40
    .local v0, "ajax":Lrexsee/core/transportation/RexseeAjax;
    if-nez v0, :cond_0

    .line 41
    iget-object v1, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    # getter for: Lrexsee/core/browser/RexseePreload;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/browser/RexseePreload;->access$0(Lrexsee/core/browser/RexseePreload;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v2, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    invoke-virtual {v2}, Lrexsee/core/browser/RexseePreload;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Ajax object is not available."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 46
    :goto_0
    return-void

    .line 44
    :cond_0
    iget-object v1, p0, Lrexsee/core/browser/RexseePreload$1;->val$url:Ljava/lang/String;

    const-string v2, ""

    iget-object v3, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    # getter for: Lrexsee/core/browser/RexseePreload;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v3}, Lrexsee/core/browser/RexseePreload;->access$0(Lrexsee/core/browser/RexseePreload;)Lrexsee/core/browser/Browser;

    move-result-object v3

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    move v5, v4

    invoke-virtual/range {v0 .. v5}, Lrexsee/core/transportation/RexseeAjax;->syncSubmit(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String;

    move-result-object v6

    .line 45
    .local v6, "code":Ljava/lang/String;
    iget-object v1, p0, Lrexsee/core/browser/RexseePreload$1;->this$0:Lrexsee/core/browser/RexseePreload;

    # getter for: Lrexsee/core/browser/RexseePreload;->listener:Lrexsee/core/browser/clazz/PreloadFilterListener;
    invoke-static {v1}, Lrexsee/core/browser/RexseePreload;->access$1(Lrexsee/core/browser/RexseePreload;)Lrexsee/core/browser/clazz/PreloadFilterListener;

    move-result-object v1

    iget-object v2, p0, Lrexsee/core/browser/RexseePreload$1;->val$url:Ljava/lang/String;

    invoke-virtual {v1, v2, v6}, Lrexsee/core/browser/clazz/PreloadFilterListener;->add(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
